package com.hyz.reggie.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hyz.reggie.dao.AddressBookDao;
import com.hyz.reggie.pojo.AddressBook;
import com.hyz.reggie.service.AddressBookService;
import org.springframework.stereotype.Service;

import java.util.Arrays;

@Service
public class AddressBookServiceImpl extends ServiceImpl<AddressBookDao, AddressBook> implements AddressBookService {
    @Override
    public void modifyAddress(AddressBook addressBook) {
        updateById(addressBook);
    }

    @Override
    public void deleteAddress(Long[] ids) {
        removeByIds(Arrays.asList(ids));
    }
}
